'use strict';

new Vue({
  el: '#root',

  data: {
    introImgIndex: 0,
    introImgs: ['https://www.ziweiyang.com/upload/images/ebook_category/img/20150507103226_107.jpg', 'https://www.ziweiyang.com/upload/images/coursebook_category/img/20150504112616_16.jpg', 'https://www.ziweiyang.com/upload/images/ebook_category/img/20150507103226_107.jpg', 'https://www.ziweiyang.com/upload/images/coursebook_category/img/20150504112616_16.jpg']
  },

  methods: {
    onClickIntroImg: function onClickIntroImg(i) {
      this.introImgIndex = i;
    }
  }
});